//
// Created by bxw57 on 2024/4/22.
//

#include "Computer.h"

void Computer::work() {
    cpu->work();
    card->work();
}

Computer::~Computer() {
    if (cpu != nullptr) {
        delete cpu;
        cpu = nullptr;
    }
    if (card != nullptr) {
        delete card;
        card = nullptr;
    }
}
